import Layout from '@/layout'

export default {
  path: '/back',
  component: Layout,
  name: 'back',
  meta: { title: '用户管理', icon: 'el-icon-setting' },

  children: [{
    // 默认的子路由
    path: 'back-user',
    name: 'back-user',
    component: () =>
      import ('@/views/back/back-user'),
    // meta:控制左侧菜单
    meta: { title: '用户', icon: 'el-icon-user' }
  }, {
    // 默认的子路由
    path: 'back-menus',
    name: 'back-menus',
    component: () =>
      import ('@/views/back/back-menus'),
    // meta:控制左侧菜单
    meta: { title: '菜单', icon: 'el-icon-menu' }
  }, {
    // 默认的子路由
    path: 'back-quanxian',
    name: 'back-quanxian',
    component: () =>
      import ('@/views/back/back-quanxian'),
    // meta:控制左侧菜单
    meta: { title: '权限', icon: 'el-icon-menu' }
  }, {
    // 默认的子路由
    path: 'back-rizhi',
    name: 'back-rizhi',
    component: () =>
      import ('@/views/back/back-rizhi'),
    // meta:控制左侧菜单
    meta: { title: '日志', icon: 'el-icon-menu' }
  }

  ] }
